import request from '@/utils/request'

// 获取放弃原因列表
export const invalidList = (params: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/list',
    params
  })
}
// 新建线索来源
export const invalidCreate = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/create',
    method: 'POST',
    data
  })
}
// 编辑线索来源
export const invalidEdit = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/edit',
    method: 'POST',
    data
  })
}
// 删除线索来源
export const invalidDel = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/del',
    method: 'POST',
    data
  })
}
// 线索来源排序
export const invalidSort = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/sort',
    method: 'POST',
    data
  })
}

// 编辑线索来源状态
export const invalidUpdateStatus = (data: any) => {
  return request({
    url: '/scrm-api/console/clue/invalid/update/status',
    method: 'POST',
    data
  })
}
